<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Upload Page</title>
</head>
<body>
<div>
  <img th:src="@{/uploadedPicture}" width="100" height="100" />
</div>
<form th:action="@{/upload}" method="post" enctype="multipart/form-data">
  <div>
    <input type="file" id="file" name="file">
  </div>
  <div>
    <button type="submit" name="Save" >Submit</button>
  </div>
</form>
<div th:text="${error}" th:if="${error}">
Error during upload
</div>
</body>
</html>